<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
<%@ Import Namespace="Vit.CMS.Data" %>
<script runat="server">
    protected List<SelectListItem> Layouts
    {
        get
        {
            List<SelectListItem> layouts = new List<SelectListItem>();
            DataSources.GetLayouts().ForEach(o => layouts.Add(new SelectListItem() { Text = o.LayoutName, Value = o.LayoutName, Selected = o.LayoutName == Model }));
            return layouts;
        }
    }
</script>
<%= Html.DropDownList("", Layouts)%>